(function() { var baseURL = "https://cdn.shopify.com/shopifycloud/checkout-web/assets/"; var scripts = ["https://cdn.shopify.com/shopifycloud/checkout-web/assets/c1.es/polyfills.qdtZZmu0.js","https://cdn.shopify.com/shopifycloud/checkout-web/assets/c1.es/app.7SOugdP5.js","https://cdn.shopify.com/shopifycloud/checkout-web/assets/c1.es/page-OnePage.BJHuBmYt.js","https://cdn.shopify.com/shopifycloud/checkout-web/assets/c1.es/DeliveryMethodSelectorSection.Df2Is8oh.js","https://cdn.shopify.com/shopifycloud/checkout-web/assets/c1.es/useUiComponentsColorContrast.EfCjXYxk.js","https://cdn.shopify.com/shopifycloud/checkout-web/assets/c1.es/VaultedPayment.Ba8cB9pb.js","https://cdn.shopify.com/shopifycloud/checkout-web/assets/c1.es/LocalizationExtensionField.d9jkNMRD.js","https://cdn.shopify.com/shopifycloud/checkout-web/assets/c1.es/RememberMeDescriptionText.B6WjKXMZ.js","https://cdn.shopify.com/shopifycloud/checkout-web/assets/c1.es/PayButtonSection.Ch1AvOyd.js","https://cdn.shopify.com/shopifycloud/checkout-web/assets/c1.es/component-ShopPayVerificationSwitch.hsF9M8MK.js","https://cdn.shopify.com/shopifycloud/checkout-web/assets/c1.es/useSubscribeMessenger.CL9ao1xn.js","https://cdn.shopify.com/shopifycloud/checkout-web/assets/c1.es/index.BxBPGYd_.js"]; var styles = ["https://cdn.shopify.com/shopifycloud/checkout-web/assets/c1.es/assets/app.2_CqZjZS.css","https://cdn.shopify.com/shopifycloud/checkout-web/assets/c1.es/assets/OnePage.oSq5W9_x.css","https://cdn.shopify.com/shopifycloud/checkout-web/assets/c1.es/assets/DeliveryMethodSelectorSection.DXQyvaAT.css","https://cdn.shopify.com/shopifycloud/checkout-web/assets/c1.es/assets/useUiComponentsColorContrast.D_HPU8Dh.css","https://cdn.shopify.com/shopifycloud/checkout-web/assets/c1.es/assets/ShopPayVerificationSwitch.DVQdwG9J.css"]; var fontPreconnectUrls = []; var fontPrefetchUrls = []; var imgPrefetchUrls = ["https://cdn.shopify.com/s/files/1/0688/5136/8234/files/LOGO_AVANTI_BLANCO_2018_3fe5dfd7-8c5e-49d2-9665-bcc07250812e_x320.png?v=1716047711","https://cdn.shopify.com/s/files/1/0688/5136/8234/files/esquinera_surf_der_ambientada_9ce82a71-0ca1-47c0-94b8-85d88da4cb9b_2000x.jpg?v=1717453388"]; function preconnect(url, callback) { var link = document.createElement('link'); link.rel = 'dns-prefetch preconnect'; link.href = url; link.crossOrigin = ''; link.onload = link.onerror = callback; document.head.appendChild(link); } function preconnectAssets() { var resources = [baseURL].concat(fontPreconnectUrls); var index = 0; (function next() { var res = resources[index++]; if (res) preconnect(res, next); })(); } function prefetch(url, as, callback) { var link = document.createElement('link'); if (link.relList.supports('prefetch')) { link.rel = 'prefetch'; link.fetchPriority = 'low'; link.as = as; if (as === 'font') link.type = 'font/woff2'; link.href = url; link.crossOrigin = ''; link.onload = link.onerror = callback; document.head.appendChild(link); } else { var xhr = new XMLHttpRequest(); xhr.open('GET', url, true); xhr.onloadend = callback; xhr.send(); } } function prefetchAssets() { var resources = [].concat( scripts.map(function(url) { return [url, 'script']; }), styles.map(function(url) { return [url, 'style']; }), fontPrefetchUrls.map(function(url) { return [url, 'font']; }), imgPrefetchUrls.map(function(url) { return [url, 'image']; }) ); var index = 0; function run() { var res = resources[index++]; if (res) prefetch(res[0], res[1], next); } var next = (self.requestIdleCallback || setTimeout).bind(self, run); next(); } function onLoaded() { try { if (parseFloat(navigator.connection.effectiveType) > 2 && !navigator.connection.saveData) { preconnectAssets(); prefetchAssets(); } } catch (e) {} } if (document.readyState === 'complete') { onLoaded(); } else { addEventListener('load', onLoaded); } })();